package com.sheng.center.service;

import java.util.List;

import com.sheng.center.dao.StudentDao;
import com.sheng.center.entity.Staff;
import com.sheng.center.entity.Student;

public class StudentServiceImpl implements StudentService {

	private StudentDao studentDao;

	@Override
	public void add(Student student) {
		studentDao.add(student);
	}

	@Override
	public void edit(Student student) {
		studentDao.edit(student);

	}
	

	@Override
	public void delete(Student student) {
		studentDao.delete(student);

	}

	@Override
	public List<Student> findAllList(Student student) {
		return studentDao.findAllList(student);
	}

	@Override
	public Student findById(Student student) {
		return studentDao.findById(student);
	}

	public StudentDao getStudentDao() {
		return studentDao;
	}

	public void setStudentDao(StudentDao studentDao) {
		this.studentDao = studentDao;
	}


	@Override
	public Student findByUsername(Student student) {
		return studentDao.findByUsername(student);
	}

}
